$RMSD(a,b) = \sqrt{\frac{1}{n} \sum_{i=1}^{n} (a_{ix}-b_{ix})^2 + (a_{iy}-b_{iy})^2 + (a_{iz}-b_{iz})^2}$